<?php
namespace app\adminapiv3\service;

/**
 * @name: 主页逻辑
 * @Param: 
 * @Description: 
 * @Author: foo
 * @Date: 2019-10-22 17:39:24
 */
use app\common\service;

class Index extends BaseService
{
    /**
     * @name: 数据统计
     * @Param: 
     * @Description: 
     * @Author: foo
     * @Date: 2019-10-22 17:55:50
     */
    function dataStatistics ()
    {
        $HostTagRelation = new service\HostTagRelation();

        $return['assets'] = $this->toDo([$HostTagRelation, 'assets']);//标签比率
        $Host = new service\Host();
        $return['oparent'] = $this->toDo([$Host, 'operant']);//操作系统比率
        $HostView = new service\HostView();
        $return['top']['port'] = $this->toDo([$HostView, 'topPort']);//曲线 端口访问量

        return $return;
    }
}